var assert = function(value, msg) {
	if (!value)
		throw(msg || (value + " dose not equal true"));
};

var assertEqual = function(val1, val2, msg) {
	if (val1 !== val2)
		throw(msg || (val1 + " does not equal " + val2));
};

(function() {

	var User = {
		list: ['이하늘', '송혜교', '전지현'], 
		find: function(user) {
			if (this.list.indexOf(user) >= 0) {
				console.log(user);
			};
		},
		destory: function(user) {
			console.log('destory: ' + user);
			this.list.splice(this.list.indexOf(user), 1);
			console.log(this.list);
		}
	};
	
	User.find('송혜교');
	User.destory('송혜교');
})();
